
/*
 * Hlpay-Plus aggregate payment system.
 * Copyright (c) 2024-2025 Hlpay Team Copyright has the right of final interpretation.
 */

package com.hlkj.pay.app.merchant.ext;

import javax.servlet.http.HttpServletRequest;

import com.hlkj.framework.common.pojo.CommonResult;
import com.hlkj.framework.extension.ExtensionPointI;
import com.hlkj.pay.app.merchant.ext.dto.settle.ChannelMerchantAccessSettleContext;
import com.hlkj.pay.dto.order.notify.OrderSettleNotifyDto;
import com.hlkj.pay.infrastructure.model.pay.ProviderChannelConfigDO;

/**
 * 通道商户结算
 * 
 * @author HlpayTeam
 * @date 2024/09/12 11:39
 */
public interface ChannelMerchantSettleExtPt extends ExtensionPointI {

    /**
     * 
     * @param context
     */
    void queryAccessBalance(ChannelMerchantAccessSettleContext context);

    /**
     * 
     * @param context
     */
    void submitAccessSettle(ChannelMerchantAccessSettleContext context);

    /**
     * 
     * @param context
     */
    void queryAccessSettle(ChannelMerchantAccessSettleContext context);

    /**
     * 结算订单回调
     *
     * @param request
     * @return
     */
    CommonResult<OrderSettleNotifyDto> orderStatusParse(HttpServletRequest request, ProviderChannelConfigDO providerChannelConfigDO);
}
